﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Navigation;
using Microsoft.Phone.Controls;
using Microsoft.Phone.Shell;
using Models;
using ViewModels;
using AMMVVMLibrary.WP8;

namespace AMMVVM.WP8.Views
{
    public partial class ItemPage : PhoneApplicationPage
    {
        public ItemPage()
        {
            InitializeComponent();
        }
        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            base.OnNavigatedTo(e);
            var passedParameter = this.DeserializeParameter<ColoredSquare>(NavigationContext.QueryString);
            this.PassParametersToViewModel<ItemPageViewModel>(e, passedParameter);
        }
    }
}